<?php
class Font_Model_Banner extends Zend_Db_Table{
	protected $_name = 'banner';
	protected $_primary = 'id';


	public function getBanner($order="desc"){
		
		$db = Zend_Registry::get ( 'connectDb' );
		
		$select = $db->select ()->from ( array ('r' => 'banner' ) )
			;
		$select = $select->order ( "r.time_post desc" );
		$stmt = $select->query ();
		$result = $stmt->fetchAll ();
		return $result[0];
		
	}
	



}